package com.nintendo.bubblechat.netty;


import java.io.Serializable;

public class DataContent implements Serializable {
    private static final long serialVersionUID = 1L;
    private Integer action; // 动作类型
    private ChatMsg chatMsg; // 用户的聊天内容 entity
    private boolean isGroupMessage; // 是否为群聊消息
    private String groupId; // 群组id
    private String extand; // 扩展字段

    public DataContent() {
    }

    public DataContent(Integer action, ChatMsg chatMsg, boolean isGroupMessage, String groupId, String extand) {
        this.action = action;
        this.chatMsg = chatMsg;
        this.isGroupMessage = isGroupMessage;
        this.groupId = groupId;
        this.extand = extand;
    }

    public Integer getAction() {
        return action;
    }

    public void setAction(Integer action) {
        this.action = action;
    }

    public ChatMsg getChatMsg() {
        return chatMsg;
    }

    public void setChatMsg(ChatMsg chatMsg) {
        this.chatMsg = chatMsg;
    }

    public boolean getIsGroupMessage() {
        return isGroupMessage;
    }

    public void setIsGroupMessage(boolean groupMessage) {
        this.isGroupMessage = groupMessage;
    }

    public String getGroupId() {
        return groupId;
    }

    public void setGroupId(String groupId) {
        this.groupId = groupId;
    }

    public String getExtand() {
        return extand;
    }

    public void setExtand(String extand) {
        this.extand = extand;
    }
}
